/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pradoeditor.exceptions;

import pradoeditor.comun.logger.CustomLogger;
import pradoeditor.comun.logger.LoggerHelper;
import pradoeditor.resources.text.MessagesCodes;
import pradoeditor.resources.text.MessagesManager;

/**
 *
 * @author jaimeg
 */
public class ProjectExistException extends Exception
{
    String path;

    public ProjectExistException(String path)
    {
        super();
        this.path = path;

        CustomLogger.writeError(ProjectExistException.class.getName(), getError());
    }

    public String getError()
    {
        String message = PROJECT_EXIST_EXCEPTION.replace("@@", path);
        return message;
    }

    // <editor-fold defaultstate="collapsed" desc="Definicion de Mensajes">

        private final String PROJECT_EXIST_EXCEPTION = MessagesManager.getMessage(MessagesCodes.pradoeditor_exceptions_PROJECT_EXIST_EXCEPTION);

    // </editor-fold>
}
